<script>
export default {
  inheritAttrs:false,
  props:{
    message:{
      required:true,
      type:[String,Number]
    }
  },
  data() {
    return {}
  },
  methods: {}
}
</script>

<template>
  <div>child {{message}}</div>
  <button  v-bind="$attrs"  >child button</button> <!--  v-bind="$attrs"表示继承到此处 -->

</template>
<style scoped>
div {
}
</style>